package net.caidingke.shepherd.domain.common.finder;

import io.ebean.Finder;
import net.caidingke.shepherd.domain.common.City;
import net.caidingke.shepherd.domain.common.query.QCity;

/**
 * @author bowen
 */
public class CityFinder extends Finder<Long, City> {

    public CityFinder() {
        super(City.class);
    }

    /**
     * Construct with a given EbeanServer.
     */
    public CityFinder(String serverName) {
        super(City.class, serverName);
    }

    /**
     * Start a new typed query.
     */
    public QCity where() {
        return new QCity(db());
    }

    /**
     * Start a new document store query.
     */
    public QCity text() {
        return new QCity(db()).text();
    }
}
